package com.vcc.boss.controller;


import cn.dev33.satoken.annotation.SaCheckPermission;
import com.mybatisflex.core.paginate.Page;
import com.vcc.core.annotations.RestPack;
import com.vcc.service.boss.response.wellat.TransferOrderVo;
import com.vcc.service.service.TransferOrderService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("transferOrder")
public class TransferOrderController {

    @Resource
    private TransferOrderService transferOrderService;

    @GetMapping("paging")
    @RestPack
    @SaCheckPermission("wallet:transfer-order:list:view")
    public Page<TransferOrderVo> paging(
            Integer pageNumber,
            Integer pageSize,
            String orderId,
            Long targetUserId,
            String type,
            String status,
            String startDate,
            String endDate,
            Long dealerId
    ){
        return transferOrderService.paging(
                pageNumber,
                pageSize,
                orderId,
                type,
                startDate,
                endDate,
                status,
                targetUserId,
                dealerId
        );
    }

}
